﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DnsServer.TestUnit {


    public static class DarkAssert {

        public static void StringContains(string test, string[] contains) {

            foreach (var contain in contains) {
                if (!test.Contains(contain)) {
                    throw new AssertFailedException(string.Format("Exptected string {0} does not contain {1}", test, contain));

                }
            }
         

        }

        public static void StringContains(string test, string contains) {
            StringContains(test, new[] {contains});
        }

    }
}
